import React from "react";
import './style.scss'
class ModelConfirm extends React.Component {
  render() {
    const { show, closeModel, handleOK } = this.props
    return (
      <div className="model" style={{ display: show ? 'block': 'none' }}>
        <div className="content">
          <div className="tip">
            <h2>标题</h2>
            <h2 onClick={() => closeModel()}>X</h2>
          </div>
          <div className="con">
            内容
          </div>
          <div className="footer">
            <button className="close" onClick={() => closeModel()}>取消</button>
            <button className="ok" onClick={() => handleOK()}>确定</button>
          </div>
        </div>
      </div>
    );
  }
}

export default ModelConfirm;
